package com.yashi.entity;

import java.util.List;

import javax.validation.constraints.NotNull;

/**
 * 用户表; InnoDB free: 169984 kB
 * 
 * @author MBK
 * 
 * @date 2018-09-13
 */
public class TbUser {
    /**
     * id
     */
    private String id;

    /**
     * 用户名
     */
    @NotNull(message="用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @NotNull(message="密码不能为空")
    private String password;

    /**
     * 部门id
     */
    
    private String departmentId;

    /**
     * 职位
     */
    private String position;

    /**
     * 电话
     */
    private String phone;

    /**
     * 头像地址
     */
    private String photo;

    /**
     * 邮箱
     */
    private String mail;

    /**
     * 创建日期
     */
    private String createDate;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 修改人
     */
    private String updateBy;

    /**
     * 修改日期
     */
    private String updateDate;
    
    /**
     * 是否是管理员
     */
    private String isAdmin;

    /**
     * 是否删除（‘0’未删除；‘1’删除）
     */
    private String delFlag;
    /**
     * 未读消息条数
     */
    private String readCount;
    /**
     * 最后一条聊天记录
     */
    private List<TbUserChat> userChatList;
    
    public List<TbUserChat> getUserChatList() {
		return userChatList;
	}

	public void setUserChatList(List<TbUserChat> userChatList) {
		this.userChatList = userChatList;
	}

	public String getReadCount() {
		return readCount;
	}

	public void setReadCount(String readCount) {
		this.readCount = readCount;
	}

	/**
     * 部门实体
     */
    private TbDepartment department;

	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId == null ? null : departmentId.trim();
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail == null ? null : mail.trim();
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate == null ? null : createDate.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate == null ? null : updateDate.trim();
    }
    

    public String getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}

	public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }

	public TbDepartment getDepartment() {
		return department;
	}

	public void setDepartment(TbDepartment department) {
		this.department = department;
	}
    
}